package com.wan.rabbitmq.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author 万明宇 on 2018/3/7.
 */
@Component
@RabbitListener(queues = "myTopic02")
public class TopicReceiverTest02 {

    @RabbitHandler
    public void process(String test){
        System.out.println("TopicReceiverTest02 :" + test);
    }
}
